-- GENERATED SPELL FOR [Frostwolf Legionnaire] --


function spell0_12051(pUnit, Event) --@Rend,n/a--
pUnit:FullCastSpellOnTarget(11977,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_12051', 15000, 1)
end

function Sorts_12051(pUnit, Event)
local choix_sorts_12051 = math.random(0, 0)
if choix_sorts_12051 == 0 then
pUnit:RegisterEvent('spell0_12051', 1, 1)
end
end

function mob12051_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_12051', math.random(1500, 3000), 1)
end

function mob12051_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12051_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12051_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(12051, 1, 'mob12051_Action')
RegisterUnitEvent(12051, 2, 'mob12051_Leave')
RegisterUnitEvent(12051, 3, 'mob12051_Kill')
RegisterUnitEvent(12051, 4, 'mob12051_Die')
